package com.hyh.baowenlioaworking.service;

import com.hyh.baowenlioaworking.commom.Page;
import com.hyh.baowenlioaworking.model.Department;

import java.util.List;

/**
 * @BelongsPackage: com.hyh.baowenlioaworking.service
 * @ClassName DepartmentService
 * @Author: hyhWTX
 * @CreateTime: 2023-07-21  14:05
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
public interface DepartmentService {

    List<Department> queryAll();

    int saveDepartment(Department department);

    //    int deleteDepartment(Integer id);
    boolean deleteDepartmentByIdWithCheck(int departmentId);

    int deleteAll();

    Page<Department> findDepartmentByPage(Integer currentPage, Integer size);
}